import request from '../utils/request';
import axios from 'axios';
const baseUrl = "http://8.140.102.196/api";

//鉴权 GET /auth/getJsConfig
export const auth_getJsConfig = params => {
    const url = `${baseUrl}/auth/getJsConfig`;
    return axios.get(url, { params: params });
};
//免登POST /auth/login
export const auth_login = params => {
    const url = `${baseUrl}/auth/login`;
    return axios.post(url, params);
};
// 获取用户
export const userTicket = params => {
    const url = `${baseUrl}/user/findUserByData`;
    return axios.post(url, params);
};
//POST /user/setAnnualLeave 批量设置员工可用年假
export const setAnnualLeave = params => {
    const url = `${baseUrl}/user/setAnnualLeave`;
    return axios.post(url, params);
};
//用户统计页面使用/userTicket/queryForCensus
//统计各状态人数
export const userCensus = params => {
    const url = `${baseUrl}/userTicket/queryForCensus`;
    return axios.get(url, {params:params});
};
//// /attendance/expInfoByData  员工考勤数据导出，根据查询条件导出
export const expInfoByData = params => {
    const url = `${baseUrl}/attendance/expInfoByData`;
    return axios.post(url, params);
};
/////////attendance/findInfoByData   员工考勤列表查询，根据条件查询
export const findInfoByData = params => {
    const url = `${baseUrl}/attendance/findInfoByData`;
    return axios.post(url, params);
};
